package com.bigknow.appstore.web.framework.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by TwelveFoldEr on 2016/5/9.
 */
public class OptionGroupVo {
    private String id;
    private String name;
    private String type;
    private List<OptionVo> options = new ArrayList<>();

    public OptionGroupVo(String id, String name, String type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void addOption(String id, String name){
        options.add(new OptionVo(id,name));
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<OptionVo> getOptions() {
        return options;
    }

    public void setOptions(List<OptionVo> options) {
        this.options = options;
    }

}
